-- GENERATED SPELL FOR [Razorbeak Skylord] --


function spell0_2659(pUnit, Event) --@Rend Flesh,n/a--
pUnit:FullCastSpellOnTarget(3147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2659', 12000, 1)
end

function spell1_2659(pUnit, Event) --@Wing Flap,Self--
pUnit:FullCastSpellOnTarget(11019,pUnit)
pUnit:RegisterEvent('Sorts_2659', 654, 1)
end

function Sorts_2659(pUnit, Event)
local choix_sorts_2659 = math.random(0, 1)
if choix_sorts_2659 == 0 then
pUnit:RegisterEvent('spell0_2659', 1, 1)
end
if choix_sorts_2659 == 1 then
pUnit:RegisterEvent('spell1_2659', 1, 1)
end
end

function mob2659_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2659', math.random(1500, 3000), 1)
end

function mob2659_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2659_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2659_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2659, 1, 'mob2659_Action')
RegisterUnitEvent(2659, 2, 'mob2659_Leave')
RegisterUnitEvent(2659, 3, 'mob2659_Kill')
RegisterUnitEvent(2659, 4, 'mob2659_Die')
